// stack&&queue.cpp

#include"Stack&&Queue.h"

namespace My
{
	void test01()
	{
		stack<int> s1;
		s1.push(1);
		s1.push(2);
		s1.push(3);
		s1.push(4);

		cout << s1.size() << endl;

		while (!s1.empty())
		{
			cout << s1.top() << " ";
			s1.pop();
		}
	}


	void test02()
	{
		queue<int> s2;
		s2.push(1);
		s2.push(2);
		s2.push(3);
		s2.push(4);
		s2.push(5);

		cout << s2.size() << endl;

		while (!s2.empty())
		{
			cout << s2.front() << endl;
			s2.pop();
		}
	}

};